
import turtle
turtle.speed(5)

# 树干
turtle.color("brown")
turtle.pensize(15)
turtle.left(270)
turtle.pu()
turtle.goto(0, 250)
turtle.pd()
turtle.forward(500)

# 画树体1
turtle.pensize(2)
turtle.goto(0, 250)
turtle.pd()
turtle.begin_fill()
turtle.color("green")
turtle.left(45)
turtle.forward(100)
turtle.left(225)
turtle.forward(150)
turtle.left(225)
turtle.forward(100)
turtle.end_fill()

# 树体2
turtle.begin_fill()
turtle.pu()
turtle.goto(0, 150)
turtle.pd()
turtle.left(270)
turtle.forward(150)
turtle.right(135)
turtle.forward(220)
turtle.right(135)
turtle.forward(150)
turtle.end_fill()

# 画树体3
turtle.begin_fill()
turtle.pu()
turtle.goto(0, 0)
turtle.pd()
turtle.left(270)
turtle.forward(220)
turtle.right(135)
turtle.forward(320)
turtle.right(135)
turtle.forward(220)
turtle.end_fill()
turtle.done()